package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.FlowLinkQueryDto;
import com.group.eams.pojo.entity.FlowLink;
import com.group.eams.pojo.vo.FlowLinkListVo;
import com.group.eams.service.FlowLinkService;
import com.group.eams.mapper.FlowLinkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【flow_link(流程线表)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class FlowLinkServiceImpl extends ServiceImpl<FlowLinkMapper, FlowLink> implements FlowLinkService{

    @Autowired
    private FlowLinkMapper flowLinkMapper;

    /**
     * 根据查询条件查询流程线
     *
     * @param flowLinkQueryDto 查询条件
     * @return 流程线列表
     */
    @Override
    public Page<FlowLink> findByQueryDto(FlowLinkQueryDto flowLinkQueryDto) {
        Page<FlowLinkListVo> page = new Page<>(flowLinkQueryDto.getPage(),flowLinkQueryDto.getLimit());
        return flowLinkMapper.findByQueryDto(page,flowLinkQueryDto);
    }
}
